Modify the configuration of the partition identified by {name}
in
the database identified by {id|name}
.
URL Parameters | |
---|---|
format | The format of the requested data. Can be
html , json or xml (default). If present, the
format parameter overrides the Accept header. |
Upon success, MarkLogic Server returns a status code 204 (No Content).
manage-admin
role, or the following
privilege: http://marklogic.com/xdmp/privileges/manage-admin
You can set the property values as follows:
availability
: Set the availability of the partion to either
online
or offline
. For details, see tieredstorage:partition-set-availability
. updates-allowed
: Set the updates-allowed state for the partition to one of
the following: all
, delete-only
, read-only
,
flash-backup
. For details, see tieredstorage:partition-set-updates-allowed. For details, see Common Forest and Partition Operations in the Administrator's Guide.
availability
updates-allowed
query-exclusion
$ cat partition-prop.xml ==> <partition-properties xmlns="http://marklogic.com/manage"> <availability>online</availability> <updates-allowed>all</updates-allowed> </partition-properties> $ cat partition-prop.json ==> { "availability": "online", "updates-allowed": all" } $ curl --anyauth --user user:password -X PUT -d @./partition-prop.xml \ -i -H "Content-type: application/xml" \ http://localhost:8002/manage/v2/databases/example-db/partitions/2011/properties ==> Set the availability and updates-allowed properties of the partition named 2011 of the database example-db. MarkLogic Server responds with status code 204 (No Content) and headers similar to the following: HTTP/1.1 204 No Content Server: MarkLogic Content-Length: 0 Connection: Keep-Alive Keep-Alive: timeout=5